import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRobIslandMiniPlayerHelper } from "./SeqRobIslandMiniPlayerHelper";
import { SEntityId } from "../Public/SEntityId";
type int = number;
//class SRobIslandFightingDetail
    
    export  class SRobIslandFightingDetail extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRobIslandFightingDetail();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.attackGuildId.__write(arg1);
            arg1.writeString(this.attackGuildName);
            this.defenseGuildId.__write(arg1);
            arg1.writeString(this.defenseGuildName);
            SeqRobIslandMiniPlayerHelper.write(arg1, this.attackPlayers);
            SeqRobIslandMiniPlayerHelper.write(arg1, this.defensePlayers);
            arg1.writeInt(this.attackTotalLife);
            arg1.writeInt(this.defenseTotaLife);
            arg1.writeInt(this.island);
            arg1.writeInt(this.placeId);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.attackGuildId = new SEntityId();
            this.attackGuildId.__read(arg1);
            this.attackGuildName = arg1.readString();
            this.defenseGuildId = new SEntityId();
            this.defenseGuildId.__read(arg1);
            this.defenseGuildName = arg1.readString();
            this.attackPlayers = SeqRobIslandMiniPlayerHelper.read(arg1);
            this.defensePlayers = SeqRobIslandMiniPlayerHelper.read(arg1);
            this.attackTotalLife = arg1.readInt();
            this.defenseTotaLife = arg1.readInt();
            this.island = arg1.readInt();
            this.placeId = arg1.readInt();
            return;
        }

        public /* const */_type: int=963;

        public /* var */attackGuildId: SEntityId;

        public /* var */attackGuildName: string;

        public /* var */defenseGuildId: SEntityId;

        public /* var */defenseGuildName: string;

        public /* var */attackPlayers: Array<any>;

        public /* var */defensePlayers: Array<any>;

        public /* var */attackTotalLife: int;

        public /* var */defenseTotaLife: int;

        public /* var */island: int;

        public /* var */placeId: int;

        public static /* var */_regist: SRobIslandFightingDetail;
    }

            SRobIslandFightingDetail._regist = new SRobIslandFightingDetail(true);
        